package com.harunasan.carrental.api.serve.domain.post;

import com.harunasan.carrental.api.serve.domain.entity.Order;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.aspectj.weaver.ast.Or;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author LiangYi
 * @since 2022/3/8 22:48
 */
@ApiModel("订单请求体")
@Data
public class OrderPost {
    @ApiModelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("租户姓名")
    private String userRealName;

    @ApiModelProperty("租户身份证号")
    private String userIdCardNumber;

    @ApiModelProperty("租户手机号")
    private String userTelephone;

    @ApiModelProperty("车辆id")
    private Long carId;

    @ApiModelProperty("车辆名")
    private String carName;

    @ApiModelProperty("车牌号")
    private String carPlateNumber;

    @ApiModelProperty("车辆网点id")
    private Long storeId;

    @ApiModelProperty("车辆网点名称")
    private String storeName;

    @ApiModelProperty("订单状态（1预定、2出车、3还车、0取消）")
    private String status;

    @ApiModelProperty("支付方式（线下支付、微信支付、支付宝）")
    private String payType;

    @ApiModelProperty("折扣")
    private BigDecimal discount;

    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("出车时间")
    private LocalDateTime driveStartDate;

    @ApiModelProperty("还车时间")
    private LocalDateTime driveEndDate;

    @ApiModelProperty("租赁天数")
    private String driveDays;

    @ApiModelProperty("租赁小时数")
    private String driveHours;}
